import { createPinia } from 'pinia'
import useLoginStore from './login/login'
import type { App } from 'vue'
const pinia = createPinia()
const registerStore = (app: App<Element>) => {
  // 创建顺序 pinia -> 用户进行刷新默认加载数据 -> router
  app.use(pinia)
  // 用户进行刷新默认加载数据
  const loginStore = useLoginStore()
  loginStore.loadLocalCacheAction()
}
export default registerStore
